#include <stdio.h>
int main(){
	float num = 0,sum = 1;
	int ans = 1;
	for(num = 2; num <= 100; num++){
		ans *= -1;
		sum += (1/num)*ans;
	}
	printf("%f",sum);
	return 0; 
}
